import re

pattern1 = r'(abc)+'
pattern2 = r'(?:abc)+'
text = 'abcabc'
match1 = re.match(pattern1,text)
match2 = re.match(pattern2,text)
if match1:
    print(match1.groups())
if match2:
    print(match2.groups())